//
//  DDMGiftOrder.m
//  dingdang
//
//  Created by lichq on 7/27/15.
//  Copyright (c) 2015 阮 沧晖. All rights reserved.
//

#import "DDMGiftOrder.h"


@implementation DDMGiftOrderCell
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{
                                                      @"giftId" : @"giftId",
                                                      @"consignee" : @"consignee",
                                                      @"areaName" : @"areaName",
                                                      @"address" : @"address",
                                                      @"phone" : @"phone",
                                                      @"status" : @"status",
//                                                      @"exchangeNum" : @"exchangeNum",
//                                                      @"payPassword" : @"payPassword",
                                                      @"zipCode" : @"zipCode"
                                                      }];
}
@end

@implementation DDMGiftOrderCell1
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{
                                                      @"data" : @"data",
                                                      @"list" : @"list",
                                                      @"id" : @"id",
                                                      @"uid" : @"uid",
                                                      @"giftId" : @"giftId",
                                                      @"name" : @"name",
                                                      @"price" : @"price",
                                                      @"imgPath" : @"imgPath",
                                                      @"valid" : @"valid",
                                                      @"detail" : @"detail",
                                                      @"marketable" : @"marketable",
                                                      @"consignee" : @"consignee",
                                                      @"areaName" : @"areaName",
                                                      @"address" : @"address",
                                                      @"zipCode" : @"zipCode",
                                                      @"phone" : @"phone",
                                                      @"orderTime" : @"orderTime",
                                                      @"overTime" : @"overTime",
                                                      @"status" : @"status",
                                                      }];
}
@end

@implementation DDMGiftOrder
+(JSONKeyMapper *)keyMapper{
    return [[JSONKeyMapper alloc]initWithDictionary:@{
                                                      @"list" : @"list"
                                                      }];
}

+ (NSString *)getStartStr:(NSString *)start
{
    NSString *startStr;
    if ([start isEqualToString:@"0"]) {
        startStr = @"兑换中";
    }else if ([start isEqualToString:@"1"]) {
        startStr = @"运送中";
    }else if ([start isEqualToString:@"2"]) {
        startStr = @"兑换完成";
    }else if ([start isEqualToString:@"3"]) {
        startStr = @"兑换失败";
    }
    return startStr;
}
@end

